{% extends 'ProjResManBundle::layout.html.twig' %}

{% block content %}

<div class="container">
    <h3>Raport proiecte</h3>
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>Denumire</th>
                    <th>Cantitate</th>
                    <th>Tip</th>
                </tr>
            </thead>
            <tbody>
                {% for resource in resources %}
                    <tr>
                        <td>{{ resource.name }}</td>
                            {%if resource.type == "0"%}
                                <td>{{ resource.amount }}</td>
                                <td>Financiar</td>
                            {%elseif resource.type == "1"%}
                                <td>{{ resource.amount }}</td>
                                <td>Materiale si echipamente</td>
                            {%else%}
                                <td>-</td>
                                <td>Camere</td>
                            {%endif%}                        
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    <a href="{{ path('headmaster_resources_report') }}" style="float: left; padding-right: 20px; text-decoration: none">
                <button type="button" class="btn btn-info">Inapoi</button>
            </a>
    </div>

{% endblock %}